home *** CD-ROM | disk | FTP | other *** search
- Path: Empire.Net!usenet
- From: jb@anuxc.mv.att.com
- Newsgroups: comp.lang.c++
- Subject: ofstream or CFILE and C FILE* compatiblity
- Date: Thu, 07 Mar 1996 17:02:16 GMT
- Organization: AT&T Bell Labs
- Message-ID: <4hn4td$pnq@RedDragon.Empire.Net>
- NNTP-Posting-Host: nash1-ppp12.empire.net
- X-Newsreader: Forte Free Agent 1.0.82
-
-
- I'm writing a C++ program that's linked to a library
- written in C. The C library does some complicated
- data formatting and output that I do not want to rewrite.
- For certain functions the C library requires a pointer
- to a file as a parameter, i.e. fn(FILE * pFile).
-
- Is there a way to use either the C++ ofstream class or
- MFC CFILE classes or some other class and somehow
- still pass a C file pointer to a C library function without
- having to use the C file i/o routines, i.e. fopen()?
-
-
-
-
-